package cn.gson.springmvc.model.service;

import cn.gson.springmvc.model.mappers.ZdivisionMappers;
import com.alibaba.fastjson.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ZdivisionService {
    @Autowired
    ZdivisionMappers zdivisionMappers;

    @Transactional(value ="transactionManager" ,rollbackFor = Exception.class)
    public JSONArray selectdivision(){
        return zdivisionMappers.selectdivision();
    }
}
